Timer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 13
rs 10
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A diff 0 3 1
A bench 0 3 1
A prettify 0 3 1
1
import { formatTime } from '../utils/formatters';
2
import Counter from './Counter';
3
4
export default class Timer extends Counter {
5
    bench() {
6
        return new Date();
7
    }
8
9
    static prettify(data) {
10
        return formatTime(data);
11
    }
12
13
    diff(start, end) {
14
        return end - start;
15
    }
16
}
17